#include <tsin/display/Font.hpp>

#include <tsin/runtime/GameRuntime.hpp>
#include <tsin/util/Resolution.hpp>

using namespace tsin;

Font::Font(Display *display, StandardResolution res)
        : pw(0), ph(0)
{
        this->display = display;
        this->res = res;
}

float Font::w()
{
        return Resolution::pixel2rangeX(res, pw);
}

float Font::h()
{
        return Resolution::pixel2rangeY(res, ph);
}
